<%@page contentType="text/html; charset=utf-8" pageEncoding="utf-8"%>
<%@page import="com.yy.base.util.UserUtil"%>
<%@page import="com.mes.entity.User"%>
<%@ page import="com.yy.base.util.StringUtil" %>
<%
User user = (User)session.getAttribute(UserUtil.USERSESSION);
if (user == null) {
	response.sendRedirect(request.getContextPath());
	return;
}
//获取本机IP
String ip = StringUtil.getClientIp(request);
%>
<!DOCTYPE html>
<html class="site-demo-overflow">
<head>
	<title>系统管理平台</title>
	<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
	<meta name="renderer" content="webkit">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
	<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1">
	<link href="script/css/iconfont.css" rel="stylesheet" type="text/css"></link>
	<script src="script/mes-import.js"></script>
	<script type="text/javascript" src="script/index/index.js"></script>
	<style>
		html {
			font-size: 6.25vw!important;
		}
		#toggle {
			left: 0px;
			top: 0px;
			width: 7px;
			cursor: pointer;
			font-size: 8px;
			color: #333;
			position: absolute;
			height: 50px;
			line-height: 50px;
			background-color: #fff;
		}
	</style>
</head>
<body>
<div class="layui-layout layui-layout-admin">
	<div class="layui-header header" id="index_header">
		<div class="layui-main" id="page_header">
			<a class="logo" href="javascript: void(0);" onClick="goToHome()" style="float: left;" id="header_logo">
				<img src="./script/index/img/logo.png" height="50px" alt="layui">
			</a>
			<div style="line-height: 50px;width: 80%;" align="center">
				<b><span id="main_page_title" style="color: #0055ff;font-size: 20px;">&nbsp;</span></b>
			</div>
			<!-- 顶上面部分	快捷菜单 -->
			<ul class="layui-nav" style="position: absolute;top: 0px;right: 0px;">
				<li class="layui-nav-item" style="padding: 0 5px;">
					<a href="javascript:void(0)" onClick="goToHome()" style="padding: 0 5px;">
						主页
					</a>
				</li>
				<li class="layui-nav-item">
					<a href="javascript:openScView(0);" style="padding: 0 5px;">
						<b>欢迎您，<span id="userName"></span></b>
					</a>
				</li>
				<li class="layui-nav-item">
					<a href="javascript:void(0)" onClick="confirm1()" style="color: #F00;padding: 0 5px;"><b>安全退出</b></a>
				</li>
			</ul>
		</div>
		<div class="layui-main" id="page_title_panel" style="display: none;">
			<div style="line-height: 50px;float: left;">
				<a href="javascript:void(0)" onClick="goToHome()" style="padding: 0 5px;font-size: 24px;color: #aaa;">
					&lt;
				</a>
			</div>
			<div style="line-height: 50px;" align="center"><b><span id="page_title"></span></b></div>
		</div>
	</div>
	<!--<div class="layui-side layui-bg-black" id="layside" style="border-right: 1px #000 solid;width: 0px;display: none;">
		<div class="layui-side-scroll">
			<div id="menu"></div>
		</div>
	</div>-->

	<div class="layui-body site-demo site-demo-body" id="laybody" style="left:0px;bottom: 0px;overflow: hidden;">
		<!-- 内容主体区域 -->
		<iframe id="mainFrame" name="mainFrame" height="99.9%" width="100%" frameborder="0"></iframe>
	</div>
</div>
<script>
    var changing = false;
    window.onresize = function() {
        if (changing) {
            return;
        }
        changing = true;
        window.setTimeout(function() {
            changing = false;
            windowSizeChange();
        }, 200);
    }
    function windowSizeChange() {
        var width = document.body.clientWidth;
        if (width < 400) {
            $("#header_logo").hide();
        } else {
            $("#header_logo").show();
        }
	}
    windowSizeChange();
    window.clientIp = "<%=ip %>";
</script>
</body>
</html>